\n\t\t\t\t\t\t\t\t\tError, please try again.\n\t\t\t\t\t\t\t\t')):(t.html("Sent"),a.html('\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\tThank you for your submission. The medical team will respond to your query within the next 24 - 48 business hours.\n\t\t\t\t\t\t\t\t')),$(".modal-footer").removeClass("d-none")}))}}),$("#root").on("click","#addpics",(function(t){t.preventDefault(),a.getPlugin("Dashboard")&&a.removePlugin(a.getPlugin("Dashboard")),a.use(e,{browserBackButtonClose:!0,height:300,width:1200,hideRetryButton:!1,hideUploadButton:!0,inline:!0,note:"Images and videos(mp4, mov, webm) only, max 5 files, up to 10 MB",plugins:["Webcam"],proudlyDisplayPoweredByUppy:!0,replaceTargetContent:!0,showProgressDetails:!0,hidePauseResumeButton:!0,target:".DashboardContainer",trigger:".UppyModalOpenerBtn"}),$("#root #addpics").addClass("d-none")})),$("#root").on("submit","#contact-form",(function(t){t.preventDefault();let e=$("#submitBtn");$("#contact-form").parsley().whenValidate().done((function(){if("null"!==localStorage.getItem("page_clip_form_key"))if(a.getFiles().length>0)a.upload();else{console.log("SFEFSE");let t=new FormData($("#contact-form")[0]),o={};for(let e of t.entries())console.log(e[0]+" "+e[1]),"files"!==e[0]&&(o[e[0]]=e[1]);new bootstrap.Modal(document.getElementById("loading-modal"),{keyboard:!1,backdrop:"static",focus:!0}).show(),$(".modal-footer").addClass("d-none");let a=$("#submission-result");a.html(''),e.html("..Loading.."),Pageclip.send(localStorage.getItem("page_clip_form_key"),localStorage.getItem("formName"),o,(function(t,o){console.log("saved?",!!t,"; response:",t||o),t?(e.html("Error, Try again"),a.html('\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\tError, please try again.\n\t\t\t\t\t\t\t\t\t\t\t')):(e.html("Sent"),a.html('\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\tThank you for your submission. The medical team will respond to your query within the next 24 - 48 business hours.\n\t\t\t\t\t\t\t\t\t\t\t')),$(".modal-footer").removeClass("d-none")}))}}))})),n(),window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addListener(n),$("#css-toggle-btn").bind("click",(function(){console.log("working now"),$mode=$("body").attr("data-color-scheme"),"undefined"==typeof $mode&&($mode="light",window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&($mode="dark"),function(t,e){$dark="dark"==e,l(t,e),setTimeout((function(){$("#"+t+"-dark").removeAttr("media")}),100)}("css",$mode)),$mode="dark"==$mode?"light":"dark",l("css",$mode)}))}))